<html>
<head><meta charset="utf-8"><title>Or patterns · edition 2021 · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/index.html">edition 2021</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html">Or patterns</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="231366819"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/Or%20patterns/near/231366819" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html#231366819">(Mar 22 2021 at 19:07)</a>:</h4>
<p><span class="user-mention silent" data-user-id="198054">mark-i-m</span> <a href="#narrow/stream/268952-edition-2021/topic/The.20Weekly.20Edition.20of.20the.20Edition.20Updates.2C.20Edition.201/near/231365356">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="310399">Mara</span> It's not clear to me if that is sufficient. Is there any other case where a <code>|</code> can come after a pattern? For example, what about a <code>$foo:pat $bar:tt</code>?</p>
</blockquote>
<p><span class="user-mention" data-user-id="198054">@mark-i-m</span> the things that can follow a <code>:pat</code> is pretty limited. <code>:tt</code> isn't allowed right after it:</p>
<div class="codehilite"><pre><span></span><code>error: `$foo:pat` is followed by `$bar:tt`, which is not allowed for `pat` fragments
</code></pre></div>



<a name="231367066"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/Or%20patterns/near/231367066" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html#231367066">(Mar 22 2021 at 19:09)</a>:</h4>
<p>Hmm... I see.</p>



<a name="231367091"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/Or%20patterns/near/231367091" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html#231367091">(Mar 22 2021 at 19:09)</a>:</h4>
<p>That might work</p>



<a name="231367128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/Or%20patterns/near/231367128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html#231367128">(Mar 22 2021 at 19:09)</a>:</h4>
<p>but perhaps a crater run with the migration lint might be a good idea</p>



<a name="231367185"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/Or%20patterns/near/231367185" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html#231367185">(Mar 22 2021 at 19:10)</a>:</h4>
<p>(perhaps that was already the plan)</p>



<a name="231368592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/Or%20patterns/near/231368592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html#231368592">(Mar 22 2021 at 19:19)</a>:</h4>
<p>yes, we want to run every edition migration through crater</p>



<a name="231649744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/Or%20patterns/near/231649744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/Or.20patterns.html#231649744">(Mar 24 2021 at 15:06)</a>:</h4>
<p>Move this to <a class="stream-topic" data-stream-id="213817" href="/#narrow/stream/213817-t-lang/topic/or.20patterns">#t-lang &gt; or patterns</a> please :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>